﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OConf.Entity
{
    public class LoginLogEntity
    {
        /// <summary>
        /// id
        /// </summary>
        [Key, Column(TypeName = "varchar(50)"), Required, MaxLength(50)]
        public string ID { get; set; }

        /// <summary>
        /// 账号
        /// </summary>
        [Column(TypeName = "varchar(20)"), Required, MaxLength(20)]
        public string AccountNum { get; set; }

        /// <summary>
        /// 登录IP
        /// </summary>
        [Column(TypeName = "varchar(20)"), Required, MaxLength(20)]
        public string LoginIP { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column(TypeName = "datetime"), Required]
        public DateTime CreateTime { get; set; }

    }
}
